from GUI.MyMainWindow import MyMainWindow
from GUI.qss import qss
from PyQt6.QtCore import *


if __name__ == "__main__":
    import sys
    from PyQt6.QtWidgets import QApplication
    import multiprocessing
    multiprocessing.freeze_support()
    app = QApplication(sys.argv)
    # # 打开并读取 QSS 文件
    # file = QFile("Resources/style.qss")
    # file.open(QIODevice.OpenModeFlag.ReadOnly)
    # styleSheet = file.readAll().data().decode('utf-8')
    # 将样式表应用到应用程序
    Qss = qss
    app.setStyleSheet(Qss)

    window = MyMainWindow()
    window.show()
    sys.exit(app.exec())